package com.getpebble.android.framework.protocol.inbound;

import com.getpebble.android.bluetooth.protocol.ProtocolMessage;
import com.getpebble.android.framework.protocol.inbound.PblInboundAppInstallMessage.AppInstallResponseType;
import com.getpebble.android.framework.util.ByteUtils;
import java.nio.ByteBuffer;
import java.util.UUID;

public class PblInboundAppCurrentInstallMessage extends PblInboundAppInstallMessage {
    private UUID mCurrentUuid;

    protected PblInboundAppCurrentInstallMessage(ProtocolMessage message) {
        super(message);
        ByteBuffer buffer = message.getDataBuffer();
        checkResponseType(buffer.get());
        this.mCurrentUuid = ByteUtils.bytes2uuid(buffer);
    }

    public AppInstallResponseType getResponseType() {
        return AppInstallResponseType.CURRENT_APP;
    }

    protected int getMinSize() {
        return 17;
    }
}
